@import 'reset';

// 1rem = fontSize px
// 1px = (1 / fontSize)rem
$fontSize: 15;

@function px2rem($px) {
  @return ($px / $fontSize)+rem;
}

@mixin center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.icon {
  color: #333;
  font-size: px2rem(20);
}

.slide-up-enter,
.slide-up-leave-to {
  transform: translate3d(0, px2rem(90), 0)
}

.slide-up-enter-to,
.slide-up-leave,
.slide-down-enter-to,
.slide-down-leave {
  transform: translate3d(0, 0, 0)
}

.slide-up-enter-active,
.slide-up-leave-active,
.slide-down-enter-active,
.slide-down-leave-active {
  transition: all .2s linear;
}

.slide-down-enter,
.slide-down-leave-to {
  transform: translate3d(0, -100%, 0)
}

.fade-enter,
.fade-leave-to {
  opacity: 0;
}

.fade-enter-to,
.fade-leave {
  opacity: 1;
}

.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.5s ease;
}

.slide-left-enter,
.slide-left-leave-to {
  transform: translateX(10%);
}

.slide-left-enter-to,
.slide-left-leave,
.slide-right-enter-to,
.slide-rightn-leave {
  transform: translateX(0)
}

.slide-left-enter-active,
.slide-left-leave-active,
.slide-right-enter-active,
.slide-right-leave-active {
  transition: all .2s linear;
}

.slide-right-enter,
.slide-right-leave-to {
  transform: translateX(10%);
}

.heading.affix>.title {
  padding: 0.5rem 0.5rem;
}

.top {
  margin: 0 .3rem 0 .3rem;
  border-radius: 0.3rem;
  background-color: white;

  .row-header {
    background-color: white;
    padding: 0.5rem 1rem 0.5rem 1rem;
    border-bottom: 1px solid gray;
    border-radius: 2rem 2rem 0px 0px;
    margin-bottom: 1px;
  }
}

.img-book {
  padding: 0.25rem;
  background-color: #fff;
  /* border: 1px solid #dee2e6; */
  border-radius: 0.25rem;
  max-width: 100%;
  height: auto;
}

.gray {
  color: #969ba3;
}

.box-content {
  max-height: 8rem;
}

.top-home {
  //background-color: white;
  //width: 100%;
  //border-radius: 2rem 2rem 0px 0px;

  .top-home-tag {
    display: flex;
    padding-left: 2rem !important;
    align-items: stretch;

    .top-home-btn {
      width: 25%;

      .img-tag {
        width: 42%;
      }

      .auto-height {
        width: 42%;
      }
    }
  }
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans',
    'Droid Sans', 'Helvetica Neue', 'Microsoft Yahei', sans-serif;
}

body * {
  box-sizing: border-box;
  // flex-shrink: 0;
}

#app {
  width: 100vw;
  height: 100vh;
}

.flex-row {
  display: flex;
  flex-direction: row;
}

.justify-end {
  justify-content: flex-end;
}

.justify-around {
  justify-content: space-around;
}

.justify-evenly {
  justify-content: space-evenly;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.items-center {
  align-items: center;
}

.items-baseline {
  align-items: baseline;
}

.items-stretch {
  align-items: stretch;
}

.self-start {
  align-self: flex-start;
}

.self-end {
  align-self: flex-end;
}

.self-center {
  align-self: center;
}

.self-baseline {
  align-self: baseline;
}

.self-stretch {
  align-self: stretch;
}

.flex-1 {
  flex: 1 1 0%;
}

.flex-auto {
  flex: 1 1 auto;
}

.grow {
  flex-grow: 1;
}

.grow-0 {
  flex-grow: 0;
}

.shrink {
  flex-shrink: 1;
}

.shrink-0 {
  flex-shrink: 0;
}

.relative {
  position: relative;
}

.primary_btn {
  color: #fff !important;
  border-color: #ffc3b7 !important;
  background-color: #ffc3b7 !important;
}
.input-box {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  background-color: #f0f0f0;
  border-top: 1px solid #ffffff;
  border-radius: .5rem .5rem 0 0;
}

.icon-button {
  width: 1.8rem;
  height: 1.8rem;
  margin: .2rem;
  margin-left: 0.5rem;
  background-color: #ffc3b7;
  color: #ffffff;
  border: none;
  border-radius: 50%;
}

.text-input {
  flex: 1;
  border-radius: 10%;
  margin-left: .3rem;
  margin-right: .5rem;
  height: auto;
  background-color: #ffffff;
  border: none;
}

.send-button {
  width: auto;
  height: auto;
  margin-right: .5rem;
  padding: .25rem .5rem;
  background-color: #ffc3b7;
  color: #ffffff;
  border: none;
  border-radius: .25rem;
}